<template>
    <div class="user">
        <div class="head">
            <img src="./img/user.jpg">
        </div>
        <ul class="info">
            <li>
                <span>姓名</span>
                <i>:</i>
                <span>{{ name }}</span>
            </li>
            <li>
                <span>性别</span>
                <i>:</i>
                <span>男</span>
            </li>
            <li>
                <span>出生日期</span>
                <i>:</i>
                <span>2021年2月1日</span>
            </li>
            <li>
                <span>电话</span>
                <i>:</i>
                <span>1891000000</span>
            </li>
            <li>
                <span>身份证号码</span>
                <i>:</i>
                <span>342400000000000000</span>
            </li>
        </ul>
    </div>
</template>

<script>
module.exports = {
    data(){
        return {
            name:"测试文本信息"
        }
    }
}
</script>

<style>
.user {
    width: 500px;
    display: flex;
    flex-flow: row nowrap;
    border: 1px solid #cccccc;
    box-shadow: 0px 0px 10px #cccccc;
    border-radius: 12px;
    overflow: hidden;
    margin: 10px;
}

.user .head {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
}

.user .head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.user .info {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 2px;
    list-style: none;
    padding-left: 26px;
}

.user .info span:first-child {
    display: inline-block;
    width: 80px;
    text-align: justify;
    text-align-last: justify;
    color: #007bff;
}

.user .info i {
    font-style: normal;
    padding: 0px 10px;
    color: #aaaaaa;
}
</style>